// C:\Users\王硕\Desktop\毕设\housing-rental-system-frontend\新建文件夹\vue-demo\vue.config.js
module.exports = {
  devServer: {
    port: 8081,
    proxy: {
      "/api": {
        target: "http://localhost:8080", // 必须与后端端口一致
        changeOrigin: true,
      },
    },
    client: {
      overlay: false,
    },
  },
};
